import Base from '../../static/js/base'
class RecommendProductList extends Base{
	constructor() {
		super();
	}
	// 商品列表
	product_list(page,type,callBack) {
		var url = '';
		if(type == 1){
			url = 'index/recommend_product_list';
		}else{
			url = 'index/best_product_list';
		}
		var that = this;
		var params = {
		  url: url,
		  data:{
			  page:page,
		  },
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
}
export default RecommendProductList	